<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Login BeginCode编程学习社区</title>

    <!-- Bootstrap -->
    <link href="${rc.contextPath}/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="${rc.contextPath}/js/jquery-3.3.1.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="${rc.contextPath}/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <form class="form-horizontal" style="padding: 30px 100px 10px;"
              action="${rc.contextPath}/user/login" method="post">

            <fieldset>
                <legend>登录账号</legend>
            </fieldset>


            <div class="form-group">
                <label for="email" class="col-sm-2 control-label">Email：</label>
                <div class="col-sm-4">
                    <input type="text" name="email" class="form-control" id="email"
                           placeholder="Email">
                </div>

            </div>

            <div class="form-group">
                <label for="password" class="col-sm-2 control-label">密码：</label>
                <div class="col-sm-4">
                    <input type="password" class="form-control" id="password"
                           name="pwd">
                </div>

            </div>
            <div class="form-group">
                <label for="nickname" class="col-sm-2 control-label">验证码：</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" name="checkCode" id="checkCode">
                </div>
                <img id="imgObj" alt="验证码" src="${rc.contextPath}/user/checkCode" onclick="changeCheckCode()"/>
            </div>


            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-3">

                    <button type="submit" class="btn btn-primary">登录BeginCode</button>
                    <div>${errMsg!}</div>
                </div>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/app_js/reg.js"></script>
</body>
</html>